package org.yujuan.springbootlearning.spring;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yanghao
 */
@Component
@ConfigurationProperties(prefix = "spring.datasource.hikari")
@Data
public class HikariProperties {

    private boolean readOnly;

    private Long connectionTimeout;

    private Long idleTimeout;

    private Long maxLifetime;

    private int maximumPoolSize;

    private int minimumIdle;

    private String connectionTestQuery;

}
